package xin.fsqr520.project.domain.po;

// 自定义业务异常
public class BaseException extends RuntimeException {
    private int code = 400; // 默认错误码

    public BaseException(String message) {
        super(message);
    }

    public BaseException(int code, String message) {
        super(message);
        this.code = code;
    }

    // getter
    public int getCode() {
        return code;
    }
}